﻿<!DOCTYPE html>
<html>
<head>
	<title>锐浪HTML5报表演示 - 报表模板或报表数据跨域获取</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
	<script src="../../grhtml5-6.6-min.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function window_onload() {
            //如果是跨域的报表模板或报表数据，应该通过General/CrossDomain.jsp进行读取
            //TBD...以下两个URL要重新写
            var reportViewer = rubylong.grhtml5.insertReportViewer("report_holder", 
                "CrossDomain.jsp?url=" + encodeURIComponent("http://testwtmsshoss.oss-cn-shanghai.aliyuncs.com/20171220120105306.grf"), 
                "../../../data/DataCenter.jsp?data=Customer");
                //"CrossDomain.jsp?url=" + encodeURIComponent("../../data/DataCenter.jsp?data=Customer"));

            //启动报表运行，生成报表
            reportViewer.start(); 
        }
    </script>
</head>
<body onload="window_onload()">
    <div id="report_holder">
    </div>
</body>
</html>